extends CharacterBody2D


var speed = 75
var dir

func getDamageType():
	return "hurtful"

func _ready():
	dir = get_node("/root/Controller").player.global_position + Vector2(0,-11) - global_position
	dir = dir.normalized()

func _physics_process(delta):
	move_and_collide(dir * speed * delta)

func _on_Timer_timeout():
	hide()
	queue_free()
